package com.epam.giorgadze.task4.Runner;

import com.epam.giorgadze.task4.Entity.Client;
import com.epam.giorgadze.task4.Entity.Library;
import com.epam.giorgadze.task4.Factory.LibraryFactory;

public class Runner {
    
    public static void main(String[] args) {
//        Book book1 = new Book(154212, "45", "A. Duma");
//        Book book2 = new Book(185689, "White fang", "J. London");
//        Book book3 = new Book(354562, "Portrait of Dorian Grey", "Oscar Wilde");
//        Book book4 = new Book(465287, "Martin Iden", "J. London");
//        Book book5 = new Book(564284, "The Old Man and the Sea", "E. Hemingway");
//        Book book6 = new Book(986458, "The catcher in the Rye", "J. Salindger");
//        Book book7 = new Book(231564, "The Great Gatsby", "F. Fitgerald");
//        LinkedList<Book> list = new LinkedList<Book>();
//        list.add(book1);
//        list.add(book2);
//        list.add(book3);
//        list.add(book4);
//        list.add(book5);
//        list.add(book6);
//        list.add(book7);
//        Library<Book> pool = new Library<Book>(list);
        Library pool = LibraryFactory.createLibrary(7);
        for (int i = 0; i < 25; i++) {
            new Client(pool).start();
        }
    }
    
}
